@extends('_layout.login')

@section('main')
	<div class="row">
		<div class="col-md-4 col-md-offset-4 login">
			<div class="col-md-12">
				{{ Form::open(array('route' => 'user.login.post')) }}
					<div class="logo">
						{{ HTML::image('img/gulliver-logo.png', "user sign in", array()) }}
					</div>

					<div class="form-group @if ($errors->has('user_id')) has-error @endif">
						{{ Form::text('user_id', Input::old('user_id'), array('class' => 'form-control', 'placeholder'=>trans('common.user_id'))) }}
						@if ($errors->has('user_id')) <p class="help-block">{{ $errors->first('user_id') }}</p> @endif
					</div>

					<div class="form-group @if ($errors->has('password')) has-error @endif">
						{{Form::password('password', array('class' => 'form-control', 'placeholder'=>trans('common.user_password'))) }}
						@if ($errors->has('password')) <p class="help-block">{{ $errors->first('password') }}</p> @endif
					</div>

					<div class="form-group has-error">
					@if ($errors->has('login_error')) <p class="help-block">{{ $errors->first('login_error') }}</p> @endif
					</div>
					<button type="submit" id="one_click" class="btn btn-lg btn-login btn-block">{{ trans('common.login') }}</button>
					{{ Form::hidden('type', '7') }}
				{{ Form::close() }}
			</div>
		</div>
	</div>
@stop
